import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 分页查询
export const getList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/categoryRepair`, { params });
// 禁用|启用
export const disableEnable = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/categoryRepair/disableOrEnable`, params)
//新增|编辑备件分类
export const addOrEditPartReturnParam = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/categoryRepair/addOrEditPartReturnParam`,  params );

